Running scripts (uv Guides)
https://docs.astral.sh/uv/guides/scripts/
A Python script is a file intended for standalone execution, e.g., with python <script>.py.
#uv_run
Running a script without dependencies
Running a script with dependencies
uv run --with
Declaring script dependencies
PEP 723 – Inline script metadata
uv add --script <script> ...:自動で書いてくれる!
Improving reproducibility
inline script metadataの拡張
uv supports an exclude-newer field in the tool.uv section of inline script metadata to limit uv to only considering distributions released before a specific date.
Using different Python versions
uv run --python
Using GUI scripts
積ん読